projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc51b25
)
(dumpglyphs): Don't crash for invalid face code.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Feb 1994 06:49:18 +0000
(06:49 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 1 Feb 1994 06:49:18 +0000
(06:49 +0000)
src/xterm.c
patch
|
blob
|
history
diff --git
a/src/xterm.c
b/src/xterm.c
index e471311da5a7a8f83925d1cae761a528aecdb8f3..cc7f9aa70896c5e75565164eec6c8e453a44dd23 100644
(file)
--- a/
src/xterm.c
+++ b/
src/xterm.c
@@
-524,11
+524,11
@@
dumpglyphs (f, left, top, gp, n, hl)
/* First look at the face of the text itself. */
if (cf != 0)
{
- /*
The face codes on the glyphs must be valid indices into the
-
frame's face tabl
e. */
+ /*
It's possible for the display table to specify
+
a face code that is out of range. Use 0 in that cas
e. */
if (cf < 0 || cf >= FRAME_N_COMPUTED_FACES (f)
|| FRAME_COMPUTED_FACES (f) [cf] == 0)
-
abort ()
;
+
cf = 0
;
if (cf == 1)
face = FRAME_MODE_LINE_FACE (f);